// Ionic 主入口文件 App

// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.services' is found in services.js
// 'starter.controllers' is found in controllers.js
var APP = angular.module('starter', ['ionic', 'ngCordova', 'app.templates']);
var CONFIG = {
  pageSize: 10,
  environment: 1
};

/**
 * 发版用。防止开发环境时候报错app.templates异常
 */
try {
  module = angular.module('app.templates');
} catch (e) {
  module = angular.module('app.templates', []);
}
